package net.bezrabotnih.client.managed.ui;

import com.google.gwt.requestfactory.ui.client.ProxyRenderer;
import java.util.List;
import net.bezrabotnih.client.managed.request.JobTypeProxy;
import net.bezrabotnih.client.managed.request.ThumbnailProxy;
import net.bezrabotnih.client.managed.request.UserAccountProxy;
import net.bezrabotnih.client.managed.request.UserRatingProxy;

public class UserAccountProxyRenderer extends ProxyRenderer<UserAccountProxy> {

    private static net.bezrabotnih.client.managed.ui.UserAccountProxyRenderer INSTANCE;

    protected UserAccountProxyRenderer() {
        super(new String[] { "email" });
    }

    public static net.bezrabotnih.client.managed.ui.UserAccountProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new UserAccountProxyRenderer();
        }
        return INSTANCE;
    }

    public String render(UserAccountProxy object) {
        if (object == null) {
            return "";
        }
        return object.getEmail() + " (" + object.getEmail() + ")";
    }
}
